<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link rel="stylesheet" type="text/css" href="/Public/css/base.css">
<link rel="stylesheet" type="text/css" href="/Public/artDialog/skins/aero.css">
<style>
.ksjb {
	border-right: 1px solid #ACACAC;
	border-bottom: 1px solid #ACACAC;
	background-color: #F1F8B4;
	padding: 2px;
	padding-right: 5px;
	padding-left: 5px;
	background: url(allbtbg2.gif) #EFF7D0;
	cursor: pointer;
}

</style>
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/jquery-1.8.0.min.js"></script>
<script language="javascript" type="text/javascript" src="/dadaocms/Public/artDialog/artDialog.source.js?skin=aero"></script>
<script>
$(function(){
	
	/*
	* 点击展开子类
	*
	*/
	$(".jia").click(function(){
		if($(this).parent("td").parent("tr").next(".seed").is(":hidden")){
			$(this).parent("td").parent("tr").next(".seed").show();
			$(this).html("-");
		}else{
			$(this).parent("td").parent("tr").next(".seed").hide();
			$(this).html("+");	
		}
		
	});
	
	$(".seed").prev(".fid").find("td").find("span.jia").html("-");
	
	/*
	* 点击关闭所有子类
	*
	*/
	$("#closeseed").click(function(){
		if($(this).val() == "展开所有子类"){
			$(".seed").show();
			$(this).val("关闭所有子类");
			$.each($(".jia"),function(k,v){
				if($(this).html()){
					$(this).html("-");
				}
			});						
		}else{
			$(".seed").hide();
			$(this).val("展开所有子类");
			$.each($(".jia"),function(k,v){
				if($(this).html()){
					$(this).html("+");
				}
			});		
		}		
	});
	
});

function winopen(okurl,openname,iWidth,iHeight){
	var iTop = (window.screen.height-30-iHeight)/2;
	var iLeft = (window.screen.width-10-iWidth)/2; 
	window.open(okurl, openname, 'height='+iHeight+', width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='/kefu/public/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
  <tr>
    <td height="26" background="/kefu/public/images/newlinebg3.gif">&nbsp;<strong><a href="__GROUP__/Menu/index">节点管理</a></strong></td>    
    <td width="130" height="26" background="/kefu/public/images/newlinebg3.gif"><span class="coolbg" onClick="winopen('__URL__/jiedian_add','add',1000,650)">增加节点</span>
    </td>
    <td width="90" height="26" background="/kefu/public/images/newlinebg3.gif"><input type='button' class="coolbg np" id="closeseed" value='关闭所有子类' /></td>
  </tr>
</table>

<!--  内容列表   -->
<form name="form2">
  <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
    <tr bgcolor="#E7E7E7">
      <td height="24" colspan="5" background="/kefu/public/images/tbg.gif">&nbsp;文档列表&nbsp;</td>
    </tr>
    <tr align="center" bgcolor="#FAFAF1" height="22">
      <td width="65">ID</td>
      <td width="135">节点名称</td>
      <td width="300">节点路径</td>
      <td>操作</td>
    </tr>
    <volist name="list" id="vo">
      <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
        <td><span class="jia"></span>{$vo.id}</td>
        <td><a href='__URL__/yiyuan_edit/id/{$vo.id}'><u>{$vo.name}</u></a></td>
        <td><a href=''><u>{$vo.name}</u></a></td>
        <td>
        <span class="coolbg" onClick="winopen('__URL__/jiedian_edit/id/{$vo.id}','edit',1000,650)">编辑</span>&nbsp;&nbsp;<a href="__URL__/keshi_del/yiyuanid/{$yiyuanid}/id/{$vo.id}" class="coolbg" onClick="return confirm('你确定要删除该记录吗？');">删除</a></td>
      </tr>
    </volist>
    

    <php>
    if($jiedian){JiedianTree($jiedian);}    
	</php>
    
    

    <tr align="right" bgcolor="#EEF4EA">
      <td height="36" colspan="3" align="center"><!--翻页代码 -->{$page}</td>
      <td height="36" align="center"><a class="coolbg" href="<php>echo C('TOPURL_S');</php>/delcache/1">清除缓存</a></td>
    </tr>
  </table>
</form>

<!-- 显示修改科室疾病的模板 -->
<div class="editjibingbox" style="display:none">
  <table width="600px" align="center" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" style="border:0px">
    <tr bgcolor="#E7E7E7">
      <td align="right" bgcolor="#E7E7E7" width="70">疾病名称：</td>
      <td><div class="title"></div></td>
    </tr>
    <tr bgcolor="#E7E7E7">
      <td align="right" bgcolor="#E7E7E7">疾病搜索：</td>
      <td><form name='zz_add' class="zz_add"  action="__URL__/ksjb_add">
          <input type="hidden" name="keshiid" class="keshiid">
          <input type="hidden" name="jibingid" class="jibingid">
          <div class="zzsosobox">
            <input name="name" type="text" class="zz_name" style="width:150px" value="" autocomplete="off">
            <div class="zzsosotxt"></div>
          </div>
          <input type="submit" name="button" id="button" value="增加疾病" style="float:left">
        </form></td>
    </tr>
    <tr bgcolor="#FAFAF1">
      <td align="right" bgcolor="#FAFAF1"><div class="yiyou">已有疾病：</div></td>
      <td class="jbzztd"></td>
    </tr>    
  </table>
</div>
</body>
</html>